<template>
  <div>
    <el-button type="success" @click="add">添加</el-button>
    <v-dialog :info="info" ref="one"></v-dialog>
    <v-list @edit="edit"></v-list>

  </div>
</template>

<script>
import vDialog from "./components/Dialog.vue";
import vList from "./components/List.vue";

export default {
  mounted() {
    // 设置路由元信息
    document.title = this.$route.meta.title;
  },
  components: {
    vDialog,
    vList
  },
  data() {
    return {
      info: {
        isShow: false,
        title: "",
        isAdd: true,
      },

    };
  },
  methods: {
    add() {
      this.info.isShow = true;
      this.info.title = "添加";
      this.info.isAdd = true;
    },
    edit(uid) {
      this.info.isShow = true;
      this.info.title = "编辑菜单";
      this.info.isAdd = false;
      this.$refs.one.getoneuser(uid);
    },


  },
  mounted(){
      
  }
};
</script>

<style>
</style>